<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>追加内容</title>
    <style>
        a{
            text-decoration: none;
            position: relative;
            color: #000000;
        }
        /* a::after{ */
            /*直接设置内容*/
            /* content: "(未雨绸缪)"; */
            /*
                提取属性
                可以使用标准属性或者自定义属性
            */
            /* content: attr(data-arr);
            text-align: center;
            color: red;
            display: inline-block;
            width: 100px;
            font-size: 15px; */
        /* } */


        /*通过属性值添加标签提示*/
        a:hover::after{
            display: inline-block;
            width: 100px;
            content: attr(data-arr);
            background: #555555;
            color: #ffffff;
            position: absolute;
            top: 20px;
            padding: 3px 10px;
            text-align: center;
            border-radius: 10px;
            line-height: 1.5em;
            box-shadow: 10px 10px 10px red;
        }

    </style>
</head>
<body>
    <a href="houdunren.com" data-arr='厚积薄发'>后盾人</a>
</body>
</html>
